<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href="__ROOT__" />
<link rel="stylesheet" type="text/css" href="__RES__images/metinfo.css" />
<script type="text/javascript" src="__RES__ckeditor/ckeditor.js"></script>
<link rel="stylesheet" href="__RES__css/common.css">
   <link rel="stylesheet" href="__RES__css/newslist.css">
   
   <script type="text/javascript" src="__RES__js/jquery.min.js"></script>
   <script type="text/javascript" src="__RES__js/colResizable-1.3.min.js"></script>
   <script type="text/javascript" src="__RES__js/common.js"></script>
   
   <script type="text/javascript">
      $(function(){  
        $(".list_table").colResizable({
          liveDrag:true,
          gripInnerHtml:"<div class='grip'></div>", 
          draggingClass:"dragging", 
          minWidth:30
        }); 
        
      }); 
   </script>
   
<script src="resource/js/jQuery1.7.2.js"></script>

<script>
$(document).ready(function(e) {
	
	$("#id").change(function(){
		
		var checked=$(this).attr("checked");

		if(checked=="checked"){
			
			$(".check").attr("checked",true);
			
			}else{
				$(".check").attr("checked",false);
				}				
		});
	
    
});

</script>   

</head>

<body>

	<div class="metinfotop">
	<div class="position">简体中文：管理员管理 > <a href="index.php/admin/admin/list">管理员列表</a></div>

	</div>
	<div class="clear"></div>


<div class="stat_list">
	<ul>
		<li class="now"><a href="index.php/admin/admin/list" title="新闻列表">管理员列表</a></li>
		<li ><a href="index.php/admin/admin/save" title="增加管理员">增加管理员</a></li>
	</ul>
</div>


<!-- <div id="button" class="mt10">
       <input type="button" name="button" class="btn btn82 btn_del" value="删除"> 
       <input type="button" name="button" class="btn btn82 btn_checked" value="全选"> 
       <input type="button" name="button" class="btn btn82 btn_nochecked" value="取消">   
     </div>-->
     
      <div id="search_bar" class="mt10">
       <div class="box">
          <div class="box_border">
            <div class="box_top"><b class="pl15">搜索</b></div>
            <div class="box_center pt10 pb10">
            <form action="" method="get">
              <table class="form_table" border="0" cellpadding="0" cellspacing="0">
              
                <tr>
                  <td>关键字</td>
                  <td><input type="text" name="keyword" class="input-text lh25" size="100"></td>
                  <td>状态</td>
                  <td>
                    <span class="fl">
                      <div class="select_border"> 
                        <div class="select_containers "> 
                        <select name="status" class="select">
                        	<option value="-1">---</option>  
                            <option value="1">审核</option> 
                            <option value="0">未审核</option> 
                        </select> 
                        </div> 
                      </div> 
                    </span>
                  </td>
                  <td><input type="submit" value="确定" class="ext_btn ext_btn_submit"></td>
                </tr>
               
              </table>
              </form>
            </div>
       
          </div>
        </div>
    </div>

<div id="table" class="mt10">
        <div class="box span10 oh">
        <form action="index.php/admin/admin/batchdel" method="post">
              <table width="100%" border="0" cellpadding="0" cellspacing="0" class="list_table">
                <tr>
                   <th width="100"><input  id="id" type="checkbox"  >ID</th>
                   <th width="150">用户名</th>
                   <th width="150">角色名称</th>
                   <th>邮箱</th>
                   <th width="50">状态</th>
                   <th width="100">操作</th>
                </tr>
                <tbody id="list">
                
                <foreach name="list" item="vo" key="k" >
                    <tr class="tr">
                       <td class="td_center"><input type="checkbox" name="id[]" class="check" value="{$vo.id}" >{$vo.id}</td>
                       <td align="center">{$vo.username}</td>
                       <td align="center">{$vo.level}</td>
                       <td align="center">{$vo.email}</td>                      
                       <td align="center"><img src="__RES__images/checky_{$vo.status}.png" /></td>
                       <td align="center"><a href="index.php/admin/admin/del/id/{$vo.id}" onclick="return confirm('确定将此记录删除?')"><img src="__RES__images/dele.png" alt="删除" /></a>&nbsp;&nbsp;<a href="index.php/admin/admin/save/id/{$vo.id}" onclick="return confirm('确定将此记录修改?')"><img src="__RES__images/enid.png" alt="编辑" /></a></td> 
                     </tr>
                </foreach>
                </tbody>
              	<tr>
                   <th colspan="6" align="left">
<!--                   		<input type="submit" name="checkall" id="id" class="btn btn82 btn_checked" value="全选">
                        <input type="submit" name="cancel"   id="cancel" class="btn btn82 btn_nochecked" value="取消">-->
                   		<input type="submit" name="del" class="btn btn82 btn_del" value="删除"> 
                        <input type="submit" name="status1" class="btn btn82 btn_del" value="启用"> 
                        <input type="submit" name="status0" class="btn btn82 btn_del" value="禁用"> 
                        <input type="button" name="button" class="btn btn82 btn_checked" value="全选"> 
       					<input type="button" name="button" class="btn btn82 btn_nochecked" value="取消">   
                   </th>
                </tr>
                
              </table>
              </form>
              <div class="page mt10">
                <div class="pagination">
                <ul>{$page}</ul>              
                	<!--<ul>
                      <li class="first-child"><a href="#">首页</a></li>
                      <li class="disabled"><span>上一页</span></li>
                      <li class="active"><span>1</span></li>
                      <li><a href="#">2</a></li>
                      <li><a href="#">下一页</a></li>
                      <li class="last-child"><a href="#">末页</a></li>
                  </ul>-->
                </div>

              </div>
        </div>
     </div>

</body>
</html>
